﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SpringStudio.Common;
using SpringStudio.DAL;
using Sdepci.InfoCode.BLL.CodeIndex;

namespace Sdepci.InfoCode.Web.CodeIndex
{
    public partial class GetCateName : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.Response.Clear();
                if (this.Request.QueryString["CateGuid"] != null && this.Request.QueryString["CateGuid"].Trim().Length > 0)
                {
                    string output = string.Empty;
                    string[] arrCateGuid = this.Request.QueryString["CateGuid"].Trim().Split(',');
                    for (int i = 0; i < arrCateGuid.Length; i++)
                    {
                        output += new Cate(arrCateGuid[i]).CateName + ",";
                    }

                    if (output != "")
                    {
                        output = output.Substring(0, output.Length - 1);
                    }
                    this.Response.Write(output);
                }
                this.Response.End();
            }
        }
    }
}
